/*
 * Created by SharpDevelop.
 * User: lovepro
 * Date: 2008-8-2
 * Time: 11:47
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

public class A
{
	public A()
	{
		Console.WriteLine("I'am constructor A has not parameters.");
	}
	public A(int i)
	{
		Console.WriteLine("I'am constructor A has one parameter.");
	}
}

public class B:A
{
	public B()
	{
		Console.WriteLine("I'am constructor B has not parameters.");
	}
	
	public B(int i, string s):base(i)
	{
		Console.WriteLine("I'am constructor B has two parameters.");
	}
}

class test
{
	public static void Main()
	{
		Console.WriteLine("Create a new object from class A.");
		A a = new A();
		
		Console.WriteLine("\nCreate a new object from class B.");
		B b = new B();
		
		Console.WriteLine("\nCreate a new object from class B with two parameters.");
		B b1 = new B(3, "C Sharp.");
	}
}
